#-------------------------------------------------
#
# Project created by QtCreator 2012-05-21T15:54:15
#
#-------------------------------------------------

QT       += opengl xml

TARGET = Core
TEMPLATE = lib
CONFIG += staticlib

INCLUDEPATH += ./include $(BOOST)

PRECOMPILED_HEADER = ./include/pheader.h
precompile_header:!isEmpty(PRECOMPILED_HEADER)
{
    DEFINES += USING_PCH
}

SOURCES += core.cpp \
    src/elements/element.cpp \
    src/elements/polygon.cpp \
    src/elements/line.cpp \
    src/renderer.cpp \
    src/document.cpp \
    src/documentcontainer.cpp \
    src/tools/tool.cpp \
    src/states/state.cpp \
    src/tools/toolmanager.cpp \
    src/tools/toolcategory.cpp \
    src/states/statemanager.cpp \
    src/tools/toolcreate.cpp \
    src/helpers/helper.cpp \
    src/helpers/gridhelper.cpp \
    src/helpers/controlpointhelper.cpp \
    src/commands/abstractcmd.cpp \
    src/commands/addlinecmd.cpp

HEADERS += core.h \
    src/elements/element.h \
    src/elements/polygon.h \
    include/pheader.h \
    src/elements/line.h \
    src/renderer.h \
    include/globals.h \
    src/document.h \
    src/documentcontainer.h \
    src/tools/tool.h \
    src/states/state.h \
    src/states/statemanager.h \
    src/tools/toolmanager.h \
    src/tools/toolcategory.h \
    src/tools/toolcreate.h \
    include/utils.h \
    src/helpers/helper.h \
    src/helpers/gridhelper.h \
    include/DocumentProperties.h \
    src/helpers/controlpointhelper.h \
    src/commands/abstractcmd.h \
    src/commands/addlinecmd.h
unix:!symbian {
    maemo5 {
        target.path = /opt/usr/lib
    } else {
        target.path = /usr/lib
    }
    INSTALLS += target
}
